package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 微信模板推送主表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PushMessage extends Model<PushMessage> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 是否已使用，true为使用，false为未使用
     */
    private Boolean isUse;

    /**
     * 微信标识
     */
    private String formId;

    /**
     * 创建时间
     */
    private Date createTime;

    private String openId;

    /**
     * 0-俱乐部小程序 1-会员端小程序
     */
    private Integer type;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String IS_USE = "is_use";

    public static final String FORM_ID = "form_id";

    public static final String CREATE_TIME = "create_time";

    public static final String OPEN_ID = "open_id";

    public static final String TYPE = "type";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
